//
//  XSChartTool.h
//  Test
//
//  Created by xueshan1 on 2018/12/13.
//  Copyright © 2018 xueshan1. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface XSChartTool : NSObject

+ (CGSize)sizeWithText:(NSString *)text fontSize:(CGFloat)fontSize;

+ (CAShapeLayer *)shapeLayerWithPath:(UIBezierPath *)path lineWidth:(CGFloat)lineWidth fillColor:(UIColor *)fillColor strokeColor:(UIColor *)strokeColor;

+ (UIImage *)imageFromColor:(UIColor *)color rect:(CGRect)rect;
+ (UIImage *)imageFromView:(UIView *)view;

+ (UILabel *)labelWithText:(NSString *)text fontSize:(CGFloat)fontSize textColor:(UIColor *)textColor textAlignment:(NSTextAlignment)textAlignment;


@end

NS_ASSUME_NONNULL_END
